<h2>Games</h2>
<table>
	<tr>
		<th>Date</th>
		<th>Teams</th>
	</tr>
	<% for game in @games %>
		<tr>
			<td><%= game.date_played %></td>
			
			<td><%= link_to 'view', game_path(game) %></td>
			<td><%= link_to 'destroy', game, :confirm => 'Are you sure?', :method => :delete %></td>
		</tr>
	<% end %>
</table>
<%= link_to "New game", new_game_path%>